<?php
include("include/config.inc.php");
if(!isset($_SESSION['s_activId']))
{
  header('location:checkLogin.php');
}

$var = (int)$_GET['partyId'];
$query1 = "DELETE FROM   party 
            WHERE partyId = ".$_GET['partyId'];
$result1= mysql_query($query1);

if(!$result1)
  echo "DELETING FAILED";
else
 header("Location:partyList.php");

?>	 